<div class="modal-content" style="width: 800px;">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal"
			aria-hidden="true" ng-click="onClose();">×</button>
		<h4 class="modal-title" id="myModalLabel">
			<span>医疗机构</span>
		</h4>
	</div>
	<div class="modal-body bg-color-gray" style="height:400px">
		<div fwa-layout-container data-main="true" class="full-width full-height" style="position: absolute;top:0px;right:0px;bottom:0px;left:0px;">
			<div fwa-layout-box="north" style="height: 80px;padding-top: 8px;">
					<div class="row col-xs-10">
						<div class="row">
						    <div class="form-group col-xs-6">
								<label class="col-xs-4 control-label text-right">机构编号:</label>
								<div class="col-xs-8 text-left">
									<input type="text" class="form-control"   ng-model="medical.orgCode"/>
								</div>
							</div>
							<div class="form-group col-xs-6">
								<label class="col-xs-4 control-label text-right">机构名称:</label>
								<div class="col-xs-8 text-left">
								    <select-container container-data="serv.medicalOrgInfoList" text="medicalOrgName" 
									    code="medicalOrgName" result="medical.orgName" 
									    data-type="true"  search-datas="['medicalOrgName','namePysr','nameWubi']" >
								    </select-container>
								     <!--<select ui-select2="{allowClear:true}" ng-model="medical.orgName" class="full-width">
										<option value=""></option>
										<option ng-repeat="data in serv.medicalOrgInfoList"
												value="{{data.medicalOrgName}}">{{data.medicalOrgName}}</option>
								     </select>  -->
								</div>
							</div>
						</div>
						<div class="row">
						<div class="form-group col-xs-6">
								<label class="col-xs-4 control-label text-right">机构类型:</label>
								<div class="col-xs-8 text-left">
									<select   class="full-width form-control"
									   ng-model="medical.orgType">
										<option value=""></option>
										<option ng-repeat="data in communityService.medicalOrgTypeDatas"
													value="{{data.code}}">{{data.name}}</option>
									</select>
								</div>
							</div>
							<div class="form-group col-xs-6">
								<label class="col-xs-4 control-label text-right">机构等级:</label>
								<div class="col-xs-8 text-left">
									<select  class="full-width form-control"
									   ng-model="medical.orgLevel">
										<option value=""></option>
										<option ng-repeat="data in communityService.orgLevelDatas"
													value="{{data.code}}">{{data.name}}</option>
									</select>
								</div>
							</div>
						</div>
					 </div>
					 <div class=" row col-xs-2 text-center">
							<button type="button" ng-click="queryMedical();" class="btn btn-primary btn-sm">查询</button>
							<a ng-click="onReset();" class="btn btn-primary btn-sm">重置</a>
				    </div>
			 </div>
			 <div fwa-layout-box="center">
					<fwa-table columns="columns" data-rows="tableData"
						data-check="true" 
						style="position: absolute;top:0px;right:8px;bottom:0px;left:8px;">
					</fwa-table>
			 </div>
			 <div fwa-layout-box="south" class=" page-height">
					<div class="col-xs-12">
						<page-tool total-count="totalCount" current-page="currentPage"
							data-limit="10"> </page-tool>
					</div>
		     </div>
	    </div>
	</div>
	<div class="modal-footer">
	<div class="col-xs text-center">
		<button type="button" class="btn btn-primary btn-sm" ng-click="confirm();">保存</button>
		<button type="button" class="btn btn-primary btn-sm" ng-click="onClose();" >取消</button>
	</div>
</div>
</div>
<!--div style="max-height:240px; overflow:auto;margin-left: 8px;margin-right: 8px;">
		<table class="fwa-table table-striped fwa-table-bordered" >
			<thead>
				<tr>
					<th>&nbsp;</th>
					<th width="24%">机构编号</th>
					<th width="24%">机构名称</th>
					<th width="24%">机构类型</th>
					<th width="24%">机构等级</th>
				</tr>
			</thead>
			<tbody>
			<tr ng-repeat="data in tableDatas" ng-click="onOrgLevelRowClick(data.level)">
					<td>
						<div><input type="checkbox" ng-model="data.checked"></div>
					</td>
					<td>
						<div><span ng-bind="data.orgNo"></span></div>
					</td>
					<td title="{{data.orgName}}">
						<div><span ng-bind="data.orgName"></span></div>
					</td>
					<td>
						<div><span ng-bind="data.orgType"></span></div>
					</td>
					<td>
						<div><span ng-bind="data.orgLevel"></span></div>
					</td>
				</tr>
			</tbody>
		</table>
		</div-->